class TopsController < ApplicationController
  def index
    c = Category.find_by_name('公司新闻')
    unless c.blank?
      @articles =  Article.find(:all ,:conditions  => ["category_id = ? and is_public = ?", c.id ,true ], :order => "created_at desc", :limit =>  10)
    else
      @articles = []
    end
    @products =  Product.find(:all ,:conditions  => ["is_public = ?" ,true], :order => "created_at desc", :limit =>  10)
  end
  
  def solution
    
  end
  def help
    
  end
  def sitemap
    
  end
end
